package exceptions.lexic;

public class ForbiddenWordException extends LexicException{

	private int linea;
    private int columna;
    private String id;
    
	
    public ForbiddenWordException(String s, int l, int c){
		linea=l;
        columna = c - (s.length()-1);
        id = s;
	}
    
	public String getMessage(){
		return "ForbiddenWordException: "+id + " es una palabra prohibida, en linea: "+linea+", columna: "+columna;
	}

}
